﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using middleware.dominio;

namespace middleware
{
    public partial class Principal : Form
    {
        public Principal()
        {
            InitializeComponent();
            
            //Cargo el formulario de Login
            Login frmLogin = new Login();
            pnlPrincipal.Controls.Add(frmLogin);
            frmLogin.Visible = true;
        }

        private void salirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConfiguracionGeneral frmConfiguracion = new ConfiguracionGeneral();
            pnlPrincipal.Controls.Add(frmConfiguracion);
            frmConfiguracion.Visible = true;
        }

        private void bandejaEntradaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AdministrarBandejaEntrada frmBandejaEntrada = new AdministrarBandejaEntrada();
            pnlPrincipal.Controls.Clear();
            pnlPrincipal.Controls.Add(frmBandejaEntrada);
            frmBandejaEntrada.Visible = true;
        }

    }
}
